package com.ezgo.erc.mq.handler;

import com.ezgo.erc.entity.Email;

public class ConsumerListener {
	public void handleMessage(String message) {
		System.out.println("ConsumerListener通过handleMessage接收到一个纯文本消息，消息内容是：" + message);
	}

	public void receiveMessage(String message) {
		System.out.println("ConsumerListener通过receiveMessage接收到一个纯文本消息，消息内容是：" + message);
	}

	public void receiveMessage(Email email) {
		System.out.println("接收到一个包含Email的ObjectMessage。");
		System.out.println(email);
	}
}
